﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="lp_Share_Excel.aspx.cs" Inherits="ZLDC.Estate.Quantify.Report.lp_Share_Excel" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title></title>
        <link href="../../css/main1.css" rel="stylesheet" type="text/css" />
        <script type="text/javascript">
            function JY(obj) {

                var xls = obj.split('.');
                if (xls[1] != "xls" && xls[1] != "xlsx") {
                    alert("请选择正确的Execl文件!");
                    document.getElementById('Button4').disabled = 'false';
                }
                else
                { document.getElementById('Button4').disabled = ''; }

            }
        </script>
        <style type="text/css">
        .divtop{margin:5px 0 0 5px;}
        </style>
</head>
<body>
    <form id="form1" runat="server">
    <div class="divtop">
    <div>注:日期格式(2012-01)</div>
    <asp:Button ID="Button5" runat="server" Text="下载模版" CssClass="button_bak" OnClick="Button5_Click" />
                    <asp:FileUpload ID="FuloadExcelFile" runat="server" onpropertychange="JY(this.value)" />
                    <asp:Button ID="Button4" runat="server" Text="导入" OnClick="Button4_Click" CssClass="button_bak" OnClientClick="return excelsl()" />
                    <script type="text/javascript">
                        function excelsl() {
                            var file = document.getElementById('FuloadExcelFile').value;
                            if (file == '') {
                                alert('请先选择需要导入的文件');
                                return false;
                            }

                            return true;
                        }
                    </script>
    </div>
    </form>
</body>
</html>
